package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.GoodsCollection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsCollectionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsCollection record);

    GoodsCollection selectByPrimaryKey(Long id);

    List<GoodsCollection> selectAll();

    int updateByPrimaryKey(GoodsCollection record);

    GoodsCollection getByAndUserIdCommodityId(@Param("userId") Long userId, @Param("commodityId")Long commodityId);

    List<GoodsCollection> getByUserId(Long userId);
}